<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>商品搜索 - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />

<link href="${root}/u/css/checkout.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/cart.css" type="text/css" rel="stylesheet" />
<script src="${root}/u/js/jquery.js" type="text/javascript"></script>
<script src="${root}/u/js/cart_sure.js"  type="text/javascript"></script>
<script src="${root}/u/js/cart.js"  type="text/javascript"></script>


<!-- <script src="${root}/u/js/jspgou/jquery1.42.min.js" type="text/javascript"></script> -->
<script src="${root}/u/js/jspgou/jquery.superslide.2.1.1.js" type="text/javascript"></script>
<script src="${root}/u/js/jspgou/leftlanmu.js" type="text/javascript"></script>
<script src="${root}/u/js/jspgou/1/lib.js" type="text/javascript"></script>
<script type="text/javascript">
function getJvForm(){
		return document.getElementById("jvForm");
	}
//更多选项按钮
function clickOrderBy(a){
	$("#orderBy").val(a);
	var jvForm = getJvForm();
	jvForm.onsubmit=null;
	jvForm.submit();
}
//价格确认按钮
function searchPriceRange(){
	var d=$("#startPrice").val();
	var a=$("#endPrice").val();
   if((d=="")&&(a=="")){
	   alert("请输入价格区间");d.focus();return;
   }
   if((d!="")&&(a!="")){
	   if(Number(a)<Number(d)){
		   alert("输入价格区间 右值必须大于或等于左值");
		   a.focus();return;
		}
	}
	var jvForm = getJvForm();
	jvForm.onsubmit=null;
	jvForm.submit();
}
//价格清除按钮
function cleanPrice(){
	 document.getElementById("startPrice").value="￥";
	 document.getElementById("endPrice").value="￥";
}
</script>
<style>
.all-goods .posone{ left:236px;}
.red{ color:#ff0000;}
.search_msg{ font-family:Arial; border:1px solid #e1e1e1; height:20px; line-height:20px; margin:10px auto; background:#f7f7f7; padding:5px;}
</style>
</head>
<body style="background:url(${root}/u/img/jspgou/bg2.gif) repeat-x;">
<div class="w1187b">
    [#include "../include/页头2.html"/]
    <div class="w1173">
		<div class="position">
        您现在的位置：<a href="${base!}/">首页</a> > 商品检索
        </div>
        <div class="tszg">
        [#if q??]
        [@shop_lucene_page q=q ctgId=ctgId descLen='100' append='...' startPrice=startPrice endPrice=endPrice count='5' orderBy=orderBy]
        <div class="search_msg">
        您搜索的<span class="red"> “ ${q!} ” </span>， 共有 <span class="red"> ${tag_pagination.totalCount} 条</span> 查询结果，[@process_time/]
        </div>
        [/@shop_lucene_page]
        [/#if]
        <form id="jvForm" action="${urlPrefix}${urlSuffix}">
        [#if orderBy??] [#assign orderBy = (orderBy)?number][/#if]
        [#if startPrice??] [#assign startPrice = (startPrice)?number][/#if]
        [#if endPrice??] [#assign endPrice = (endPrice)?number][/#if]
        [#include "搜索查询页.html"/]
        [#if q??]
        [@shop_lucene_page q=q ctgId=ctgId descLen='100' append='...' startPrice=startPrice endPrice=endPrice count='5' orderBy=orderBy]			
        [#if tag_list??]
        <ul style="clear:both;">
        	[#list tag_list as product]
            <li>
            <a href="${product.url!}">
            	<img src="${base!}${product.coverImgUrl!}" title="${product.name!}" width="120" height="150"/>    
            </a>
            <p><a href="${product.url!}" class="sp_title">[@text_cut s=product.name length='3' append='...'/]</a></p>
            <p><span>￥${product.salePrice!}元</span>
            <a class="button buy fr" href="${product.url}" target="_blank" style="line-height:30px;">查看详情</a>
            </p>
            </li>
        	[/#list]
        </ul>
        <div class="pageNumber">[@pagination_style sysPage='3'/]</div> 
        <div class="clear"></div>   
        [#else]
        <p>暂无记录</p>
        [/#if]
        [/@shop_lucene_page]	  
        [/#if]	
        </div>
        <div id="hisAssociated" style="clear:both;"></div>
	</div>
     </form>
</div>
[#include "../include/footer_information_bar.html"/] 
</body>
</html>